package com.pcbly.web.business.workflow;

import java.util.List;

import com.pcbly.web.bean.workflow.WorkflowCustomerBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.persistence.workflow.WorkflowCustomerDao;

public class WorkflowCustomerServiceImp extends
		BaseServiceImp<WorkflowCustomerBean> implements WorkflowCustomerService {
	public WorkflowCustomerServiceImp() {
		super();
	}

	private WorkflowCustomerDao workflowCustomerDao;

	public void setWorkflowCustomerDao(WorkflowCustomerDao workflowCustomerDao) {
		this.workflowCustomerDao = workflowCustomerDao;
	}

	@Override
	public void createWorkflowCustomerBean(WorkflowCustomerBean bean)
			throws Exception {
		// TODO Auto-generated method stub
		workflowCustomerDao.createWorkflowCustomerBean(bean);
	}

	@Override
	public void delectWorkflowCustomersByColumnNameAndValue(String columnName,
			String columnValue) throws Exception {
		// TODO Auto-generated method stub
		workflowCustomerDao.delectWorkflowCustomersByColumnNameAndValue(
				columnName, columnValue);
	}

	@Override
	public void deleteWorkflowCustomerBean(String id) throws Exception {
		// TODO Auto-generated method stub
		workflowCustomerDao.removeById(id);
	}

	@Override
	public WorkflowCustomerBean findWorkflowCustomerBeanById(String id)
			throws Exception {
		// TODO Auto-generated method stub
		return workflowCustomerDao.get(id);
	}

	@Override
	public List<WorkflowCustomerBean> findWorkflowCustomersByColumnNameAndValue(
			String columnName, String columnValue) throws Exception {
		// TODO Auto-generated method stub
		return workflowCustomerDao.findWorkflowCustomersByColumnNameAndValue(
				columnName, columnValue);
	}

	@Override
	public void updateWorkflowCustomerBean(WorkflowCustomerBean bean)
			throws Exception {
		// TODO Auto-generated method stub
		workflowCustomerDao.saveObject(bean);
	}

}
